"""
 输出三角形字符阵列
"""
n = eval(input())
c = 0
for i in range(n, 0, -1):
    for j in range(0, i):
        print(chr(ord('A')+c),end=' ')
        c += 1
    print()